package com.ctshk.rpc.localfun.dto;

import com.ctshk.common.utils.anno.ColumnMapping;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Description 产品列表展示字段
 * @Author wansi <gaylen15527491065@yeah.net>
 * @Date 2021/3/22
 */
@Data
@ApiModel(value="LocalFunResourceDTO", description="产品列表展示字段")
public class LocalFunResourceDTO implements Serializable {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "产品编号")
    private String productCode;

    @ApiModelProperty(value = "产品名称")
    private String name;

    @ApiModelProperty(value = "城市名称")
    private String cityName;

    @ApiModelProperty(value = "产品类型ID(1 小交通,2 餐券餐食,3 摄影服务)")
    private Long funType;

    @ApiModelProperty(value = "产品类型")
    private String funName;

    @ApiModelProperty(value = "供应商ID")
    private Long supplierId;

    @ApiModelProperty(value = "供应商名称")
    private String supplierName;

    @ApiModelProperty(value = "适用人群ID")
    private Long intendedUserId;

    @ApiModelProperty(value = "适用人群")
    private String intendedUser;

    @ApiModelProperty(value = "负责人ID")
    private Long chargeUserId;

    @ApiModelProperty(value = "负责人名称")
    private String chargeUser;

    @ApiModelProperty(value = "售卖状态")
    private Integer saleStatus;

    @ApiModelProperty(value = "售卖状态")
    @ColumnMapping(fieldId = "saleStatus",mapping = {"0","無效","1","有效"})
    private String saleStatusDesc;

    @ApiModelProperty(value = "审批状态")
    private Integer approvalStatus;

    @ApiModelProperty(value = "审批状态")
    @ColumnMapping(fieldId = "approvalStatus",mapping = {"1","待提交","2","審批中","3","審批通過","4","審批不通過"})
    private String approvalStatusDesc;

    @ApiModelProperty(value = "是否允许自由行打包(1 允许,2 不允许,3 只限打包)")
    private Integer allowPackage;

    @ApiModelProperty(value = "是否允许自由行打包(1 允许,2 不允许,3 只限打包)")
    @ColumnMapping(fieldId = "allowPackage",mapping = {"1","允许","2","不允许","3","只限打包"})
    private String allowPackageDesc;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "產品來源(1 API ,2 手动录入)")
    private Integer sourceType;

    @ApiModelProperty(value = "状态")
    @ColumnMapping(fieldId = "sourceType",mapping = {"1","API","2","手动录入"})
    private String sourceTypeDesc;
}
